home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPP08.ZIP
/
MAKEC08
< prev
next >
Wrap
Text File
|
1991-07-08
|
3KB
|
124 lines
#-----------------------------------------------------------------------------
#
# LEARNING C++ (for Borland C++ 2.0)
#
# by Tom Swan
#
# MAKEC08 -- Make file for chapter 8
#
# To compile all programs, make sure C:\BC\BIN is in your
# system path (replace C: with the drive letter where you
# installed Borland C++.) Then enter
#
# MAKE -fMAKEC08
#
# Copyright (c) 1991 by Tom Swan. All rights reserved.
#
#-----------------------------------------------------------------------------
# IMPORTANT:
# If files DISP.H and DISP.OBJ are not stored in
# \lcppb\lib, change the path in the following definition
# to the location of the two files. Do not end the path
# with a backslash.
lib=\lcppb\lib
# Library and include-file macros. If you change the library
# file name, you'll have to change it in every MAKE file.
library=$(lib)\lcpp.lib
include=$(lib)
# OPTION:
# To examine programs with Turbo Debugger, remove the
# leading # from the beginning of the following command. This
# will increase disk consumption drastically, so you'll
# normally leave the line as is.
#debugging = 1
# Note: If you change the debugging symbol, delete all .OBJ
# and .EXE files before remaking.
# These statements create appropriate macros based on the
# setting of the debugging symbol above. The -v option adds
# debugging information to compiled programs.
!if $d(debugging)
compile=bcc -c -v -I$(include) $(library)
link=bcc -v -I$(include) $(library)
!else
compile=bcc -c -I$(include) $(library)
link=bcc -I$(include) $(library)
!endif
# -- Force MAKE to recognize various dependencies
depends: \
allrecdb.exe cdir.exe free.exe fsize.exe makedb.exe \
maketxt.exe nav.exe rdata.exe read.exe readdb.exe \
readln.exe readtxt.exe sdir.exe sorttxt.exe tdir.exe \
touch.exe wdata.exe
# -- Compile executable programs and other modules
allrecdb.exe: allrecdb.cpp sample.h
$(link) allrecdb
cdir.exe: cdir.cpp
$(link) cdir
free.exe: free.cpp
$(link) free
fsize.exe: fsize.cpp
$(link) fsize
makedb.exe: makedb.cpp sample.h
$(link) makedb
maketxt.exe: maketxt.cpp
$(link) maketxt
dir.obj: dir.cpp dir.h
$(compile) dir
rdata.exe: rdata.cpp
$(link) rdata
readdb.exe: readdb.cpp sample.h
$(link) readdb
readln.exe: readln.cpp
$(link) readln
readtxt.exe: readtxt.cpp
$(link) readtxt
sdir.exe: sdir.cpp
$(link) sdir
sorttxt.exe: sorttxt.cpp
$(link) sorttxt
touch.exe: touch.cpp
$(link) touch
wdata.exe: wdata.cpp
$(link) wdata
nav.exe: nav.cpp dir.obj
$(link) nav dir.obj
read.exe: read.cpp dir.obj
$(link) read dir.obj
tdir.exe: tdir.cpp dir.obj
$(link) tdir dir.obj